/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package decorator;

/**
 *
 * @author Emmanuel
 */
public class PruebaDecorador {
    
    public static void main(String[] args) {
        
        Cafe c = new CafeSimple();
        System.out.println("Costo: " + c.obtenerCosto() + "; Ingredientes: " + c.obtenerIngredientes());
 
        c = new Leche(c);
        System.out.println("Costo: " + c.obtenerCosto() + "; Ingredientes: " + c.obtenerIngredientes());
 
        c = new Canela(c);
        System.out.println("Costo: " + c.obtenerCosto() + "; Ingredientes: " + c.obtenerIngredientes());
 
        c = new Crema(c);
        System.out.println("Costo: " + c.obtenerCosto() + "; Ingredientes: " + c.obtenerIngredientes());
 
        // Empalmado
        c = new Canela(c);
        System.out.println("Costo: " + c.obtenerCosto() + "; Ingredientes: " + c.obtenerIngredientes());
    }
}
